// app.js
export default {
    onCreate() {
        console.info('AceApplication onCreate');
    },
    onDestroy() {
        console.info('AceApplication onDestroy');
    },
    //定义一个全局对象
    globalData: {
        appData: 'appData',
        appVersion: '2.0',
    },
    //定义一个全局方法
    globalMethod() {
        console.info('This is a global method!');
        this.globalData.appVersion = '3.0';
    }
};